package cn.itcast.dtx.notifydemo.bank1.spring;

import cn.itcast.dtx.notifydemo.bank1.entity.AccountPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author misterWei
 * @create 2020年02月17号:13点25分
 * @mailbox mynameisweiyan@gmail.com
 */
@FeignClient(serviceId = "dtx-notifymsg-demo-pay",fallback = PayClientRollBack.class)
public interface PayClient {
    //查询充值结果
    @GetMapping(value = "/pay/payresult/{txNo}")
    public AccountPay payresult(@PathVariable("txNo") String txNo);
}
